import request from '@/utils/request'
import Cookies from "js-cookie";

// 获取列表
export function notificationList(data,page) {
    return request({
        url: '/Wx_message_notification/notification_list/'+(page?page:1),
        method: 'post',
        data: data
    })
}

// 列表分页
export function notificationPage(data) {
    return request({
        url: '/Wx_message_notification/notification_page',
        method: 'post',
        data: data
    })
}

// 获取列表
export function getMessageInfo(data,page) {
    return request({
        url: '/Wx_message_notification/sample_list/'+(page?page:1),
        method: 'post',
        data: data
    })
}

// 列表分页
export function getMessageInfoPage(data) {
    return request({
        url: '/Wx_message_notification/sample_page',
        method: 'post',
        data: data
    })
}

// 发送短信
export function sendMessage(data) {
    return request({
        url: '/Wx_message_notification/send_message',
        method: 'post',
        data: data
    })
}


// 手机号导入
export function importPhone(data) {
    return request({
        url: '/Wx_send_management/welfare_import_phone',
        method: 'post',
        data: data
    })
}

// 详情
export function notificationInfo(data) {
    return request({
        url: '/Wx_message_notification/notification_info',
        method: 'post',
        data: data
    })
}
